function Person(name,age){
    var myName = name;
    var myAge = age;
    this.getName = function(){
        return myName;
    }
    this.setName = function(val){
        myName = val;
    }
    this.getAge = function(){
        return age;
    }
    this.setAge = function(val){
        age = val;
    }
}

var person = new Person("wangwei",18);
console.log(person.getName());
person.setAge(22);
console.log(person.getAge());



(function(){
    var site,domain;
    MyObject = function(s,d){
        site = s;
        domain = d;
    }
    MyObject.prototype.getSite = function(){
        return site;
    }
    MyObject.prototype.setSite = function(value){
        site = value;
    }
    MyObject.prototype.getDomain = function(){
        return domain;
    }
    MyObject.prototype.setDomain = function(value){
        domain = value;
    }
})();

var web = new MyObject("网络","www.baidu.com");
console.log(web.getSite());
web.setSite("百度");
console.log(web.getSite());

function show(a,b,c){
    console.log(arguments.length);
}

console.log(show.name);


var shows = new Function();
console.log(shows.name);

var showss = function(){

};
console.log(showss.name);
